package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 李旭
 * @date 2021/11/26 14:22
 * @Description:
 *
 *   去登录
 *   退出
 */
@Controller
public class LoginController {


    //去登录
    @GetMapping("/login.html")
    public String login(String originUrl, Model model){

        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
